﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMTPAPI.Interfaces;
using System.Net.Mail;

namespace SMTPAPI.InterfaceImplementation
{
    public class SMTPSeverSettings:ISMTPSeverSettings
    {
        public SmtpClient ConfigureSMTPServerSetting(string smtpServerName, int port)
        {
            SmtpClient smtpServer = new SmtpClient(smtpServerName);
            smtpServer.Port = port;
            smtpServer.EnableSsl = true;

            return smtpServer;
        }
    }
}
